import Vue from 'vue';
import Router from 'vue-router';
import login from '../pages/Login.vue'
import topPage from '../pages/TopPage.vue'
import mainManagementPage from '../pages/MainManagementPage.vue'
import orderHouse from '../pages/OrderHouse.vue'
Vue.use(Router)

const routes=[
  {
    path: "/",
    component: login
  },
  {
    path: "/top",
    component: topPage,
    children: [
      {
        path:"/",
        component:mainManagementPage
      },
      {
        path:"mainManagementPage",
        component:mainManagementPage
      },
      {
        path:"orderHouse",
        component:orderHouse
      }
    ]
  }
]
const router= new Router({
  routes,
  mode: 'history'
})

export default router
